#[derive(Debug)]
enum SpreadsheetCell {
    Int(i32),
    Float(f64),
    Text(String),
}

pub fn main() {
    let mut v = vec![1, 2, 3];
    v.push(4);
    v.remove(3);

    println!("{}", match v.get(2) {
        Some(value) => value,
        None => &0
    });

    for item in &v {
        println!("{}", item);
    }
    // =====================================
    let row = vec![
        SpreadsheetCell::Int(3),
        SpreadsheetCell::Text(String::from("aaa")),
        SpreadsheetCell::Float(1.11),
    ];
    println!("{:?}", row);
}